// Creating the Surface Map objects
class SurfaceFactory {
  
  boolean hasCreated;
  
  SurfaceFactory() {
    hasCreated = false;
  }
  
  void init() {
    hasCreated = false;
  }
  
  void create(ArrayList<PVector[]> blobs,ArrayList<ISurface> targetSurfaces) {
    println("SurfaceFactory: create Surfaces");
    for (int i = 0; i < blobs.size();i++) {
      //ISurface t = new Surface(blobs.get(i));
      ISurface t = new SurfaceComplex(blobs.get(i));
      targetSurfaces.add(t);
    } 
    hasCreated = true;
  }
 
 boolean hasCreated() {
   return hasCreated;
 } 
}
